package com.itc.dao;

import com.itc.entity.Client;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther: wangyanwei
 * @Date: 2018/8/17 09:09
 * @Description:
 */
@Mapper
public interface TestMapper {

    @Select("select * from t_test")
     List<Client> getClientAll();

    @Insert("insert into t_test(name) values(#{name})")
    int save(@Param("name")String name);

}
